
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #1976d2;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.header h2 img {
    height: 36px;
    margin-right: 10px;
}

.header .breadcrumb {
    margin: 0;
    background: transparent;
    color: white;
}

.header .breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.header .breadcrumb a:hover {
    color: white;
}

.header .breadcrumb-item.active {
    color: white;
}

.header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 100;
    padding-top: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu > li {
    margin-bottom: 5px;
}

.sidebar-menu > li > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu > li > a:hover {
    background-color: #f0f0f0;
    border-left-color: #1976d2;
}

.sidebar-menu > li > a.active {
    background-color: #e3f2fd;
    border-left-color: #1976d2;
    color: #1976d2;
}

.sidebar-menu > li > a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-submenu {
    list-style: none;
    padding-left: 53px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu > li.open .sidebar-submenu {
    max-height: 500px;
}

.sidebar-submenu > li > a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-submenu > li > a:hover {
    color: #1976d2;
}

.sidebar-submenu > li > a.active {
    color: #1976d2;
    font-weight: 500;
}

/* 内容区样式 */
.content {
    margin-left: 250px;
    padding: 76px 20px 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    height: 100%;
}

.card-header {
    padding: 15px 20px;
    background-color: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-dot {
    width: 12px;
    height: 12px;
    background-color: #1976d2;
    border-radius: 50%;
    margin-top: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    margin: 0 0 5px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.notification-date {
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
}

.notification-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.type-1 {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-2 {
    background-color: #fff8e1;
    color: #ff9800;
}

.empty-message {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }
}
